@import '@/app/styles/variables';

.img {
  width: 104px;
  height: 104px;
  object-fit: cover;
  border-radius: 16px;
  -webkit-border-radius: 16px;
  -moz-border-radius: 16px;
  -ms-border-radius: 16px;
  -o-border-radius: 16px;
}

.deleteBtn {
  margin-top: 32px;
  display: flex;
  align-items: center;
  grid-area: 16px;
}

.dropdownFromModal {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.files {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  gap: 18px;
}

.show {
  margin-bottom: 24px;
}

.loader {
  animation-name: rotation;
  animation-duration: 5s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading {
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 104px;
  align-items: center;
  justify-content: center;
  padding: 32px 48px;
  border-width: 1px;
  border-radius: 16px;
  border-color: #e1e1e1;
  border-style: dashed;
  border: 1px dashed var(--simple-gray-day, #e1e1e1);
  background-color: white;
  cursor: pointer;
}

.loadingModal {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  padding: 12px 48px;
}

.delete {
  position: absolute;
  top: 2px;
  right: 2px;
  cursor: pointer;
  z-index: 20;

  &:hover path {
    fill: #ababab;
  }
}

.dropdown {
  width: 100%;
  display: flex;
  padding: 32px 48px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  max-height: 88px;
  border-radius: 16px;
  border: 1px dashed var(--Simple-Gray-Day, #e1e1e1);

  &.error {
    border: 1px dashed var(--Simple-Red-Day, #ec3333);
  }

  &:hover {
    background: var(--Pastel-Blue, #ebf1fc);
    border: 1px dashed var(--Simple-Blue-Day, #337cec);
  }
}

.fromModal {
  width: 656px;
  height: 88px;
}

.load {
  color: var(--simple-blue-day, #337cec);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
}

.mb {
  color: var(--simple-gray-evening, #ababab);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
}

@include media(sm) {
  .fromModal {
    height: 42px;
    padding: 0px;
  }

  .dropdown {
    width: 100%;
    display: flex;
    padding: 0;
    align-self: auto;
    border: none;
    justify-content: center;
    align-items: center;

    &.error {
      border: none;
    }

    &:hover {
      background: white;
      border: none;
      cursor: pointer;
    }
  }

  .dropdownFromModal {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 16px;
  }

  .mb {
    font-size: 12px;
  }

  .show {
    margin-bottom: 0px;
  }

  .img {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
  }

  .files {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100vw;
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    margin-bottom: 0px;
  }

  .files::-webkit-scrollbar {
    width: 8px;
  }

  .files::-webkit-scrollbar-thumb {
    background-color: transparent;
  }

  .files::-webkit-scrollbar-track {
    background-color: transparent;
  }

  .load {
    color: var(--simple-blue-day, #337cec);
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
  }

  .delete {
    right: 0px;
  }
}
